package com.sxx.mallAuth.feign;

import com.sxx.commons.utils.R;
import com.sxx.mallAuth.vo.LoginVO;
import com.sxx.mallAuth.vo.SocialUser;
import com.sxx.mallAuth.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**远程调用会员服务
 * @Auther: sunxx
 * @Date: 2024/8/17 - 08 - 17 - 18:55
 * @Description: com.sxx.mallAuth.feign
 * @version: 1.0
 */
@FeignClient("mall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVO vo);

    @RequestMapping("/member/member/login")
    public R login(@RequestBody LoginVO vo);

    @RequestMapping("/member/member/oauth2/login")
    public R login(@RequestBody SocialUser vo);
}
